package org.supreme.basic.excetion;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum GlobExcetionEnum {
    //全局异常
    COMMON_IS_NULL("参数为空","0"),
    COMMON_IS_FALLBACK("参数为空","0"),
    COMMON_IS_OK("成功","1"),
    COMMON_jsr303("jsr303的异常","-2"),
    COMMON_NO("失败","-1"),
     //自定义错误
    COMMON_IMAGECODE_NULL("图形验证码不能为空","-3"),
    COMMON_PHONE_COPY("等一分钟以后再试","-4"),
    COMMON_STRING("不能为空","-5"),
    COMMON_SPLITTIMEANDCODE("设置时间过期","-6"),
    COMMON_SMSKEY_IS_NULL("Redis为空","-7"),
    COMMON_FALLBACKFACTORY("熔断数据","-8"),
    COMMON_USERCODE_DTO("两次验证码不一样","-9"),
    COMMON_USER("该用户已经注册","-10"),
    COMMON_PASSWORD("两次的密码不一样","-11"),
    COMMON_CODE("微信系统异常","-13"),
    COMMON_NEARESTSHOP("店铺不存在","-14"),
        COMMON_LOGININFO("该用户未登录","-15"),
    COMMON_USERNAME("该用户未注册","-12");
    private String message;
    private String code;

}
